[@@replace]

abstract fun [@@replace](string: String, replaceValue: String): String(source)
abstract fun [@@replace](string: String, replacer: (substring: String) -> String): String(source)

MDN Reference